import { _decorator, Component, Label } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('LifeCountUI')
export class LifeCountUI extends Component {

    @property(Label)
    lifeCountLabel: Label = null;

    onLifeChange(lifeCount: number) {
        this.lifeCountLabel.string = lifeCount.toString();
    }
}


